home *** CD-ROM | disk | FTP | other *** search
- /* Copyright, 1990, Regents of the University of Colorado */
- /* This program prints out messages from a one dimensional environment
- * structure. */
-
- #define P 16
-
- environment node[P:id] { /* ==> Declaration of a one dimensional
- environment structure of size P, with an
- environment index identifier id, which
- tells WHICH environment we are. */
-
- composite go() /* ==> Declaration of a composite
- procedure with no parameters. */
- {
- printf ("node[%d] says hello\n", id);
- }
-
- }
-
- environment host { /* ==> Declaration of a scalar environment
- structure "host" is required in
- all DINO programs. */
-
- void main () /* ==> Execution starts at function
- "main" within environment "host"
- in all DINO programs. */
- {
- printf ("host says hello\n");
-
- go()#; /* ==> Call of a composite procedure
- (indicated by the "#" sign). */
- printf ("host says goodbye\n");
- }
- }
-